/* mouse right click event */

var TemplateUtil = {
	genelateAceValue:function(templateId,data){
		if(data){
			if((data instanceof Object)&&$.isEmptyObject(data))
				return false;
			if((data instanceof Array)&&data.length==0)
				return false;
			var html = AceTemplate.format(templateId,data,{
					dateIntercept:function(t){
						return t.substring(0,10);
					},
					isNull:function(value){
						if(value == undefined||value == null||$.trim(value)==""){
							return false;
						}
						return true;
					},
					genelateSelect:function(v,id){
						var ids = id.split(",");
						return $.inArray(v+"",ids)>=0?"selected='selected'":"";
					}
					
			});
			return html;
		}
		return "";
	}
};


